import App from '../App';
import TemplateHome from '../components/Templatehome.vue';
import HelloWorld from '../components/HelloWorld.vue';

import Login from '../pages/login/Login.vue';
// import Lock from '../pages/login/Lock.vue';

import Dashboard from '../pages/home/Dashboard.vue';
import AdIndex from '../pages/ad/AdIndex.vue';

import MultiVideo from '../pages/video/MultiVideo.vue';
import SingleVideo from '../pages/video/SingleVideo.vue';
import EditMultiVideo from '../pages/video/EditMultiVideo.vue';
import EditSingleVideo from '../pages/video/EditSingleVideo.vue';

import RecommendIndex from '../pages/recommend/RecommendIndex.vue';
import RecommendCollege from '../pages/recommend/RecommendCollege.vue';

import SortManagement from '../pages/SortManagement.vue'
import SortBind from '../pages/SortBind.vue'

import UserManagement from '../pages/userManage/UserManagement.vue';
import EditUserManagement from '../pages/userManage/EditUserManagement.vue';

import UserSuggestion from "../pages/UserSuggestion.vue";
import PushData from "../pages/PushData.vue";

export default[
    {
        path: '/HelloWorld',
        name: 'HelloWorld',
        component: HelloWorld
    },
    {
        path: '/Login',
        name: 'Login',
        component: Login
    },{
        path: '/',
        name: 'Dashboard',
        redirect: '/Dashboard',
        component: TemplateHome,
        children: [
            { path: 'Dashboard', component: Dashboard }
        ]
    },{
        path: '/Ad',
        component: TemplateHome,
        redirect: '/Ad/AdIndex',
        children: [
            { path: 'AdIndex', component: AdIndex },
        ]
    },{
        path: '/Video',
        component: TemplateHome,
        redirect: '/Video/MultiVideo',
        children: [
            { path: 'MultiVideo', component: MultiVideo },
            { path: 'SingleVideo', component: SingleVideo },
            { path: 'EditMultiVideo', component: EditMultiVideo },
            { path: 'EditSingleVideo', component: EditSingleVideo },
        ]
    },{
        path: '/Recommend',
        component: TemplateHome,
        redirect: '/Recommend/RecommendIndex',
        children: [
            { path: 'RecommendIndex', component: RecommendIndex },
            { path: 'RecommendCollege', component: RecommendCollege },
        ]
    },{
        path: '/SortManagement',
        component: TemplateHome,
        redirect: '/SortManagement/Sort',
        children: [
            { path: 'Sort', component: SortManagement },
            { path: 'SortBind', component: SortBind },
        ]
    },{
        path: '/UserManagement',
        component: TemplateHome,
        redirect: '/UserManagement/User',
        children: [
            { path: 'User', component: UserManagement },
            { path: 'EditUser', component: EditUserManagement },
        ]
    },{
        path: '/UserSuggestion',
        component: TemplateHome,
        redirect: '/UserSuggestion/Reply',
        children: [
            { path: 'Reply', component: UserSuggestion },
        ]
    },{
        path: '/PushData',
        component: TemplateHome,
        redirect: '/PushData/Push',
        children: [
            { path: 'Push', component: PushData },
        ]
    },
]